package com.sinosoft.web.common.pushlet;

import nl.justobjects.pushlet.core.Event;
import nl.justobjects.pushlet.core.Session;
import nl.justobjects.pushlet.core.SessionManager;
import nl.justobjects.pushlet.util.PushletException;

/**
 * Created by Administrator on 2016/6/22.
 */
public class MySessionManager extends SessionManager {


    public Session createSession(Event anEvent) throws PushletException {
        String uId = anEvent.getField("userId", "visitor");
        return Session.create(uId);
    }
}
